<include file="Public/header" />
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>留言管理</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>管理</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="post" id="form_" action="{:U('')}">
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th></th>
          <th>留言时间</th>
          <th>留言姓名</th>
          <th>留言邮箱</th>
          <th>留言标题</th>
          <th>留言内容</th>
          <th class="align-center">状态</th>
        </tr>
      </thead>
      <tbody>
        <volist name="list" id="vo">
        <tr class="hover">
          <td class="w24"><input type="checkbox" name='del_id[]' value="{$vo['id']}" class="checkitem"></td>
          <td>
            {$vo['createtime']}
          </td>
          <td>
            {$vo['full_name']}
          </td>
          <td>
            {$vo['email']}
          </td>
          <td>
            {$vo['title']}
          </td>
          <td>
            {$vo['msg']}
          </td>
		  <td class="align-center yes-onoff">
          <if condition="$vo['status'] eq 1">
            <a href="JavaScript:void(0);" class="tooltip enabled" ajax_control="Setting" ajax_branch='guestbook' nc_type="inline_edit" fieldname="status" fieldid="{$vo['id']}" fieldvalue="1" title="启用">	<img src="__IMG__/transparent.gif"></a>
          <else/>
            <a href="JavaScript:void(0);" class="tooltip disabled" ajax_control="Setting" ajax_branch='guestbook' nc_type="inline_edit" fieldname="status" fieldid="{$vo['id']}" fieldvalue="0" title="关闭"><img src="__IMG__/transparent.gif"></a>
          </if>
         </td>
        </tr>
        </volist>
      </tbody>
      <tfoot>
      <notempty name="list">
        <tr class="tfoot">
          <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
          <td colspan="16"><label for="checkallBottom">全选</label>
            &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn" onclick="if(confirm('你确定要删除？')){$('#form_').submit();}"><span>删除</span></a>
            <div class="pagination">{$show_page}</div></td>
        </tr>
      </notempty>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript" src="__JS__/jquery.edit.js" charset="utf-8"></script> 
<include file="Public/footer" />